package com.tpyule.tpclass.service;

import com.tpyule.tpclass.entity.bo.AnswerDetailBo;
import com.tpyule.tpclass.entity.dto.AnswerQueryDto;
import com.tpyule.tpclass.entity.pojo.Answer;

import java.util.List;

/**
 * @author zzz
 * @version 1.0
 * @date 2020/4/26 21:40
 */
public interface AnswerService {
    /**
     * 添加回答
     * @param answer
     * @return
     */
    public int addAnswer(Answer answer);

    /**
     * 查询回答
     * @param dto
     * @return
     */
    public List<AnswerDetailBo> getListAnswer(AnswerQueryDto dto);

    /**
     * 更新回答
     * @param answer
     * @return
     */
    public int updateAnswer(Answer answer);
}
